Add Traffic Lighting Rules
Set conditional formatting rules to apply traffic light colors to your data.
Tip: Watch this video to learn how to add traffic lighting to your visual.
Note:
-
Traffic lighting can be added to the following visual types:
- Breakdown
- Trend (with no groupings)
- Trend breakdown (with no groupings)
- Table
- Movement Breakdown
-
The following limitations exist when adding traffic lighting to the Table visual:
- A custom time period can not be set when using the Change in metric value rule type. You can only use the Same period, previous year or Previous period presets.
-
Click the Traffic light button on the Visual Actions menu.
- Click Add new rule in the Traffic light panel.
Note: If available, you can also start with a suggested traffic light rule. Suggested rules are configured by your administrator. For more information, see Configure Suggested Traffic Lighting Rules.
- Select one of the following rule types:
Note: The following table uses the example where traffic lighting is being applied to a Breakdown of Headcount by Organization Hierarchy. As shown in the previous screenshot, the visual items consist of the groupings: Operations, Sales, Finance, and more.
Rule Type Description Explanation Metric value The metric value for each visual item is compared to a target value. Rule: If the metric value is less than 250, traffic light as Bad.
For example, the Headcount for Sales is compared to the target value of 250 in the selected period. If the Headcount value for Sales is less than 250, then the visual item will be highlighted in red.
Change in metric value The metric value for each visual item in the selected time period is compared to the metric value from a previous time period. Rule: If the change from February 2020 is less than 5%, traffic light as Good.
For example, the Headcount for Marketing is compared to the Headcount for Marketing in February 2020. If the percentage change from the previous time period is less than 5%, then the visual item will be highlighted in green.
Difference from group The metric value for each visual item is compared to the metric value of another population. Rule: If the difference from Women is greater than 20%, traffic light as Bad.
For example, the Headcount for Marketing is compared to the Headcount for Women in Marketing. If the percentage change from the other population is greater than 20%, then the visual item will be highlighted in red.
Difference from another metric The metric value for each visual item is compared to another metric. Rule: If the difference from Employee Exit Count is greater than 500%, traffic light as Bad.
For example, the Headcount for Finance is compared to the Employee Exit Count for Finance. If the percentage change from the other metric is greater than 500%, then the visual item will be highlighted in red.
Difference from metric overall The metric value for each visual item is compared to the overall value of another metric. Rule: If the difference from Employee Exit Count is greater than 200%, traffic light as Concerning.
For example, the Headcount for Finance is compared to the Employee Exit Count for the entire organization. If the percentage change from the overall value of the other metric is greater than 200%, then the visual item will be highlighted in amber.
For more information about the percentage change calculation, see How the difference between metric values is calculated.
- Depending on the rule type you selected, do the following:
Rule Do this Metric value Skip to step 5. Change in metric value - Click Select a time period.
- Select one of the preset options or click Add time period to define a custom time period.
Difference from group - Click Select a group.
- In the Filter picker, select the attribute values that describe the population you want to compare for the traffic light, and then click Apply > Done.
- Optional: Add additional filters to refine the population by clicking the group that you added.
Difference from another metric - Click Select a metric.
- In the Metric picker, select the metric you want to compare for the traffic light.
Difference from metric overall - Click Select a metric.
- In the Metric picker, select the metric you want to compare for the traffic light.
- Optional: Click Add filter to refine the population of the comparison metric.
Note: The analysis context for your visual (filters, assumptions, and security permissions) will also be applied to the comparison metric. If any part of the analysis context cannot be applied to the comparison metric, you'll see the Some filters don't apply note in the Insights tab of the Info panel. Expand the note and click Inspect context to find out what parts of the analysis context has been applied to the comparison metric.
- Define the conditional expression under Is in the Rule panel. Select the condition and then type the target value. For example, Less than 50, Between 40% and 50%, or Greater than 20%.
Note: For the Between conditional expression, the lower limit value is included and the upper limit value is excluded.
- Set the traffic light color for the rule under Traffic light as:
- Bad: If the metric value meets the rule, the visual item will be highlighted in red.
- Concerning: If the metric value meets the rule, the visual item will be highlighted in amber.
- Good: If the metric value meets the rule, the visual item will be highlighted in green.
- Click Create.
- Repeat steps 2 to 7 to add additional rules.
For more information about how traffic light rules are evaluated, see Traffic Lighting Examples.
How traffic lighting rules are evaluated
The traffic lighting rules are evaluated in the order they appear in the Info panel from top to bottom. Once a rule is met, the remaining rules are not evaluated.
For example, you applied the following traffic lighting rules to the Breakdown of Headcount grouped by Organization Hierarchy:
- Metric value is greater than or equal to 250. Traffic light as Concerning.
- Metric value is greater than 500. Traffic light as Good.
- Metric value is less than 250. Traffic light as Bad.
As shown in the following illustration, the headcount for Operations is 550 and its metric value is highlighted as concerning (amber) and not good (green).
In this case, the headcount for Operations meets the first condition, so the remaining rules are not evaluated. To put your traffic lighting rules in the correct order, see Reorder Traffic Lighting Rules.
How the difference between metric values is calculated
When comparing metric values using percentages, the relative difference is calculated by subtracting the primary (reference) metric from the secondary (comparison) metric, and then dividing the difference by the secondary metric.
For example, you want to compare the overall Turnover Rate to the Turnover Rate for women, where:
- The overall Turnover Rate is 10.0% (primary metric)
- The Turnover Rate for Women is 30.0% (secondary metric)
The relative difference or percentage change is calculated as follows:
This formula is also used when evaluating the conditional rules for analysis email delivery and traffic lighting.